/**
 * clientInfo相关客户端接口
 * @class clientInfo
 * @extends core Api
 * @constructor
 * @module modules
 * @example
 */

import core from 'gapi/core'
class ApiClientUi extends core{
    /**
     * 加密
     * @method dekEncrypt
     * @public
     * @param {String} info 需要加密的字段
     * @param {Function} callBack 回调函数
     * @return {Object}
     * {data:信息}
     * @example
     *        clientInfo.dekEncrypt('123456',function(data){
     *          console.log(data);//返回字符串
     *      });
     * @since 1.0.0
     */
    authWeiXin (data, callBack){
        this.sendData({
            method: "authWeiXin",
            param: {
                data: data
            },
            callBack: callBack
        })
    }
    isBindPhone (data, callBack){
        this.sendData({
            method: "isBindPhone",
            param: {
                data: data
            },
            callBack: callBack
        })
    }
    addPV (data){
        this.sendData({
            method: "addPV",
            param: {
                pv_str: data.pv_str
            }
        })
    }
    addEV (data){
        this.sendData({
            method: "addEV",
            param: {
                ev_str: data.ev_str
            },
        })
    }

}
export default new ApiClientUi({
    name: 'ApiClientUi api',
    author: 'huochunyang@doumi.com',
    version: '2.0',
    jsbc: jsBridgeClient,
    // nativeCls 一定要和客户端的同学对应
    nativeCls: 'appClientUI'
})